
/*
Date/Time field validation
*/
function MCD_ValidateDateTime(val)
{
	var strValue = ValidatorTrim(ValidatorGetValue(val.controltovalidate));
	if( val.allownull == "True" ) 
	{
		if( strValue == "" ) return true;
	}
	// Just go ahead and try to parse it
	var date = new Date(Date.parse(strValue));
	if( isNaN(date)) return false;
	return true;
}

